﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DTO;
using BUS;

namespace WebSieuThi.QuanLi.QuanLiHangAjax
{
    public partial class quidinhhang : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["id"].ToString());
            string str = "";

            QuiDinhHangHoa qd = new QuiDinhHangHoa();

            qd = QuiDinhHangHoaBUS.hienThongTin(id);

           str += "<br/><table border=\"1\">";
            str += "<tr><td>Số lượng kho min: </td>";
            str += "<td><input type=\"text\" name=\"txtkhomin\" value=\""+ qd.SoLuongKhoMin +  "\"/></td></tr>";

      //      str += "<br/>";
            str += "<tr><td>Số lượng kho max: </td>";
            str += "<td><input type=\"text\" name=\"txtkhomax\" value=\"" + qd.SoLuongKhoMax + "\"/></td></tr>";

     //       str += "<br/>";
            str += "<tr><td>Số lượng quầy min: </td>";
            str += "<td><input type=\"text\" name=\"txtquaymin\" value=\"" + qd.SoLuongQuayMin + "\"/></td></tr>";

      //      str += "<br/>";
            str += "<tr><td>Số lượng quầy max: </td>";
            str += "<td><input type=\"text\" name=\"txtquaymax\" value=\"" + qd.SoLuongQuayMax + "\"/></td></tr>";

            str += "</table>";

            str += "<input type=\"button\" value=\"Update\" name=\""+qd.Id+"\" onclick=\"capnhapquidinh(this.name);\">";


            Response.Write(str);
        }
    }
}
